Sort the list in ascending order and print the first element in Python